/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package drawapplication;

import java.awt.Color;
import java.awt.Graphics;
import javax.swing.JPanel;

/**
 *
 * @author NguyenViet
 */
public class Peach extends JPanel {
    
    public void paintComponent(Graphics g) {
        super.paintComponent(g); //To change body of generated methods, choose Tools | Templates.
        this.setBackground(Color.WHITE);
        g.setColor(Color.RED);
//        g.fillOval(25, 25, 100, 30);//Hinh elip
//        g.fillRoundRect(25, 25, 100, 30, 5, 10);//Hinh chu nhat bo tron 4 goc
        g.drawLine(10, 15, 90, 100);
        g.setColor(Color.GREEN);
        g.drawString("HERE", 30, 45);
    }
}
